package com.hanhan.chargingpile.user.pojo.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户出入金
 * </p>
 *
 * @author HanHan
 * @since 2023-03-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="AppUserCharge对象", description="用户出入金")
public class AppUserCharge implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "流水号: 四位项目简称 + yyyyMMddHHmmSS + 4位随机数 + 账号后4位")
    private String swiftNo;

    @ApiModelProperty(value = "手机用户id")
    private Long appUserId;

    @ApiModelProperty(value = "IC卡号")
    private String appCode;

    @ApiModelProperty(value = "人民币金额")
    private BigDecimal fee;

    @ApiModelProperty(value = "支付状态:1:未支付，2：支付成功 3：支付失败 4:处理中")
    private Integer withdrawStatus;

    @ApiModelProperty(value = "1:删除，0:未删除")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;

    @ApiModelProperty(value = "三方支付平台的流水号")
    private String tranId;

    @ApiModelProperty(value = "支付类型：1.微信 2.线下")
    private Integer payType;

    @ApiModelProperty(value = "充值代理商ID")
    private Long agentUserId;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;


}
